package com.gee.spring.cloud.data.transform.mgt.controller;

import com.gee.spring.cloud.common.core.api.result.ApiResult;
import com.gee.spring.cloud.data.transform.core.dispatch.CenterDataDispatcher;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author gepengjun
 * @since 2024/3/18 16:17
 */
@Api(tags = "转发配置")
@RestController
@RequestMapping("/properties")
public class PropertiesController {

    @Autowired
    private CenterDataDispatcher centerDataDispatcher;

    @ApiOperation(value = "获取数据转发配置")
    @GetMapping("/get")
    public ApiResult<CenterDataDispatcher> getCenterDataDispatcher(){
        return ApiResult.success(centerDataDispatcher);
    }
}
